#ifndef __MSR_H__
#define __MSR_H__



// sysenter 和 sysexit

#define IA_32_SYSENTER_CS 0x174
#define IA32_EFER 0x0C0000080

#define IA32_SYSENTER_ESP 0x175
#define IA32_SYSENTER_EIP 0x176


//APIC

#define IA32_APIC_BASE 0x1b
#define IA32_APIC_ID 0x802
#define IA32_APIC_VERSION 0x803
#define IA32_APIC_EOI 0x80b
#define IA32_APIC_SVR 0x80f
#define IA32_APIC_LDR 0x80D
#define IA32_APIC_CMCI 0x82f

#define IA32_APIC_TEMPRATURE 0x833
#define IA32_APIC_PERFORM 0x834
#define IA32_APIC_LINT0 0x835
#define IA32_APIC_LINT1 0x836
#define IA32_APIC_ERROR 0x837
#define IA32_APIC_ERROR_STATUS 0x828
#define IA32_APIC_TPR 0x808
#define IA32_APIC_PPR 0x80a

// APIC TIMER
#define IA32_APIC_TIMER 0x832
#define IA32_APIC_TIMER_COUNTER 0x838
#define IA32_APIC_TIMER_CURRENT_COUNTER 0x839
#define IA32_APIC_TIMER_FREQUENCE 0x83E








//IPI
#define IA32_APIC_ICR 0x830





#endif